package com.tjmc.tiomscore.dao;

import com.tjmc.tiomscore.model.TiDistrict;
import com.tjmc.tiomscore.model.TiDistrictExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface TiDistrictMapper {
    long countByExample(TiDistrictExample example);

    int deleteByExample(TiDistrictExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TiDistrict record);

    int insertSelective(TiDistrict record);

    List<TiDistrict> selectByExample(TiDistrictExample example);

    TiDistrict selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TiDistrict record, @Param("example") TiDistrictExample example);

    int updateByExample(@Param("record") TiDistrict record, @Param("example") TiDistrictExample example);

    int updateByPrimaryKeySelective(TiDistrict record);

    int updateByPrimaryKey(TiDistrict record);

    List<TiDistrict> selectWithCompanyByExample(TiDistrictExample example);

    TiDistrict selectWithCompanyByPrimaryKey(Integer id);
}